package com.装饰器模式;

/**
 * 动物保护装备
 * @author Fang Ruichuan
 * @date 2022-09-29 10:00
 */
public class AnimalProtectionEquipment extends AnimalEquipment {
    // 定义被修饰者
    public AnimalProtectionEquipment(Animal animal) {
        super(animal);
    }

    @Override
    protected void beforeMove() {

    }

    @Override
    protected void afterMove() {

    }

    @Override
    protected void beforeBite() {
        System.out.println("安装合金牙套");
    }

    @Override
    protected void afterBite() {
        System.out.println("取下合金牙套");
    }
}
